<%-------------------------------------------------------------------
 * 页面名称：em_reg.jsp
 * 功能描述：绑定Email
 * Action  : 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ipb" uri="/WEB-INF/conf/tld/ipb.tld"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%
	String path = request.getContextPath();
%>
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/newstyle.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/common.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
	src='<%=path%>/js/vnv/commonForManage.js' charset="UTF-8"></script>
<script language="javascript">
			function submitProcess() {
				var form = document.forms["0"];
				if(document.getElementById("email").value==""){
					alert("您没有填写电子邮件！");
					return false;
				}
				if(document.getElementById("paypass").value==""){
					alert("您没有填写支付密码！");
					return false;
				}
				if(document.getElementById("verifycode").value==""){
					alert("您没有填写校验码！");
					return false;
				}
				
				if (document.getElementById("email").value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)==-1){
					alert("电子邮件格式不正确");
					document.getElementById("email").value = "";
					return false;
				}
				if(document.getElementById("paypass").value.length < 6) {
					alert("支付密码必须大于6位！");
					document.getElementById("paypass").value = "";
					return false;
				}
				if(document.getElementById("verifycode").value.length < 4) {
					alert("校验码必须大于4位！");
					document.getElementById("verifycode").value = "";
					return false;
				}
				form.submit();
			}
</script>
<div id="main">
	<!-- 绑定email模块开始 -->
	<div class="content_right">
		<div style="width: 745px; margin-left: 10px;">
			<div class="titleinfo">
				绑定Email
			</div>
			<div class="edit_pass">
				<table width="100%" border="0" align="center" cellpadding="5"
					cellspacing="1">
					<tr>
						<td colspan="2" class="font_blue">
							<table width="100%" border="0" align="center" cellpadding="7"
								cellspacing="1" bgcolor="#f9e277" style="margin: 10px 0;">
								<tr>
									<td bgcolor="#fffdf5">
										<table width="100%" border="0" cellpadding="3" cellspacing="0">
											<tr>
												<td width="3%" height="25" valign="top"
													style="border-bottom: 1px solid #ccc;"></td>
												<td width="97%" align="left" class="red12b"
													style="border-bottom: 1px solid #ccc;">
													特别提醒
												</td>
											</tr>
											<tr>
												<td valign="top">
													&nbsp;
												</td>
												<td align="left" class="font_gray">
													<span class="text9green"> </span>请输入您的
													<span class="text9green">请输入您的Email地址、支付密码和校验码</span>，获取确认绑定该Email的
													<span class="text9green">激活信</span>。
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<form action="<%=path%>/page/myspace/mailReg.do" name="form1"
						method="post">
					<tr>
						<td align="right">
							<span class="orang12b">*</span> Email地址：
						</td>
						<td bgcolor="#FFFFFF">
							<input name="email" id="email" maxlength="255" size="40"
								class="inputStyle" alt="Email地址" />
						</td>
					</tr>
					<tr>
						<td width="20%" align="right">
							<span class="orang12b">*</span> 支付密码：
						</td>
						<td width="80%" bgcolor="#FFFFFF">
							<input name="paypass" id="paypass" type="password" maxlength="20"
								class="inputStyle" alt="支付密码" />
						</td>
					</tr>
					<tr>
						<td align="right">
							<span class="orang12b">* </span>校 验 码：
						</td>
						<td bgcolor="#FFFFFF">
							<input name="verifycode" id="verifycode" maxlength="20" size="6"
								class="inputStyle" alt="校验码" />
							<img src="<%=path%>/page/util/verifyImage.jsp" width="58"
								height="20" align="absmiddle" />
							<span class="button_Frame"><a href="#"
								onclick="submitProcess();" class="dropblue14b">绑定Email</a>
							</span>
						</td>
					</tr>
					</form>
					<tr>
						<td align="right">
							&nbsp;
						</td>
						<td height="50" bgcolor="#FFFFFF">
							<input name="button" type="button" class="button_style"
								onclick="loading('<%=path%>/route.do?modual=space$account');"
								value="返 回" />
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>